package com.simpleFactory;

public class OperationDiv extends Operation {

	@Override
	public Double GetResult() throws Exception {
		if (numberB == 0) {
			throw new Exception("除数不能为零");
		}
		return numberA/numberB;
	}
}
